package com.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.pojo.Category;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xiao-chen
 * @since 2023-04-20
 */
public interface CategoryMapper extends BaseMapper<Category> {
    /**
     * 根据商品id获取商品所属类别
     *
     * @return java.lang.String
     * @author cxx
     * @date 2023/6/2 9:40
     * @param    wareId
     */
    String getCategoryNameByWareId(@Param("wareId") Long wareId);

    Long getCategoryIdByName(@Param("name") String name);
}
